import pygame as pg
import numpy as np
from PIL import Image, ImageSequence
from random import randint, choice
from typing import Literal


SCREEN_WIDTH = 1200
SCREEN_HEIGHT = 600
LAWN_WIDTH = 80
LAWN_HEIGHT = 100
LAWN_ROW = 5
LAWN_COLUMN = 9
LAWNS_WIDTH = LAWN_WIDTH * LAWN_COLUMN
LAWNS_HEIGHT = LAWN_HEIGHT * LAWN_ROW
LAWN_START_X = 260
LAWN_START_Y = 82
SUN_APPEAR = (100, 120)
SUN_DISAPPEAR = (160, 200)
CARD_SIZE = (100, 60)
TRANSPARENT = (255, 255, 255, 0)
BLACK = (0, 0, 0, 255)
WHITE = (255, 255, 255, 255)
GREEN = (0, 255, 0, 255)
GREEN1 = (0, 255, 0, 200)
YELLOW = (255, 255, 0, 255)
RED = (0, 0, 255, 255)
HP_SIZE = (80, 20)
FLAG_LENGTH = 135
FLAG_METER_SIZE = (170, 50)
ZOMBIES_PACE = {'快': 10, '极慢': 0.1, '较慢': 0.5, '慢': 1, '正常': 2}


from function import gif_to_surfaces, points_trajectory, image_array, update_plant_lists, create_plant_lists, create_zombies_list, update_zombie_list, update_zombies_plants
from interface import GifObject, CountSun, RandomSun, Sun, FlagMeter, HP
from plants import PlantMessage, PlantObject, Peashooter
from zombies import ZombieMessage, ZombieObject, Zombie
from level import Level1_1


